//
// Created by Administrator on 2024/3/11.
//

#include<bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for (auto &e:a)cin >> e;
    set<int> s(a.begin(), a.end());
    for (auto e:s)cout << e << endl;

    return 0;
}